Skip to content

Conversation

@denrase
Copy link
Collaborator

@denrase denrase commented Aug 25, 2025

📜 Description

Call options.log for structured logs, so users see console output when options.debug is enabled.

💡 Motivation and Context

Closes #3124

💚 How did you test it?

Unit tests.

📝 Checklist

  • I reviewed submitted code
  • I added tests to verify changes
  • No new PII added or SDK only sends newly added PII if sendDefaultPii is enabled
  • I updated the docs if needed
  • All tests passing
  • No breaking changes

@github-actions
Copy link
Contributor

github-actions bot commented Aug 25, 2025

Messages
📖 Do not forget to update Sentry-docs with your feature once the pull request gets approved.

Generated by 🚫 dangerJS against b97ca35

@codecov
Copy link

codecov bot commented Aug 25, 2025

Codecov Report

❌ Patch coverage is 97.22222% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 87.89%. Comparing base (192b44c) to head (b97ca35).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
packages/dart/lib/src/sentry_logger.dart 96.55% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3187      +/-   ##
==========================================
+ Coverage   87.70%   87.89%   +0.18%     
==========================================
  Files         291      291              
  Lines        9916     9952      +36     
==========================================
+ Hits         8697     8747      +50     
+ Misses       1219     1205      -14     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@github-actions
Copy link
Contributor

github-actions bot commented Aug 25, 2025

iOS Performance metrics 🚀

  Plain With Sentry Diff
Startup time 1271.81 ms 1274.41 ms 2.60 ms
Size 5.53 MiB 5.96 MiB 444.32 KiB

Baseline results on branch: main

Startup times

Revision Plain With Sentry Diff
ec78888 1251.37 ms 1269.40 ms 18.04 ms
7cfbbd6 1270.63 ms 1285.36 ms 14.72 ms
793f4dc 1262.50 ms 1282.35 ms 19.85 ms
b6c8720 1252.65 ms 1266.61 ms 13.96 ms
6b69699 1254.80 ms 1273.31 ms 18.52 ms
cc4e375 1253.06 ms 1263.81 ms 10.75 ms
2d34233 1258.19 ms 1268.92 ms 10.73 ms
575ebaa 1262.20 ms 1274.24 ms 12.04 ms
32914d8 1275.47 ms 1285.20 ms 9.73 ms
640ad0c 1241.04 ms 1253.96 ms 12.92 ms

App size

Revision Plain With Sentry Diff
ec78888 7.86 MiB 9.44 MiB 1.58 MiB
7cfbbd6 7.86 MiB 9.44 MiB 1.58 MiB
793f4dc 7.86 MiB 9.44 MiB 1.58 MiB
b6c8720 7.86 MiB 9.44 MiB 1.58 MiB
6b69699 7.86 MiB 9.44 MiB 1.58 MiB
cc4e375 7.86 MiB 9.44 MiB 1.58 MiB
2d34233 7.86 MiB 9.44 MiB 1.58 MiB
575ebaa 7.86 MiB 9.44 MiB 1.58 MiB
32914d8 7.86 MiB 9.44 MiB 1.58 MiB
640ad0c 7.86 MiB 9.44 MiB 1.58 MiB

Previous results on branch: feat/stuctured-logs-debug-log

Startup times

Revision Plain With Sentry Diff
b3ca1c1 1263.65 ms 1275.14 ms 11.49 ms

App size

Revision Plain With Sentry Diff
b3ca1c1 20.70 MiB 22.46 MiB 1.76 MiB

@denrase denrase marked this pull request as ready for review August 25, 2025 11:23
@github-actions
Copy link
Contributor

github-actions bot commented Aug 25, 2025

Android Performance metrics 🚀

  Plain With Sentry Diff
Startup time 505.64 ms 538.13 ms 32.50 ms
Size 13.93 MiB 14.93 MiB 1.00 MiB

Baseline results on branch: main

Startup times

Revision Plain With Sentry Diff
93b7728 475.28 ms 489.13 ms 13.86 ms
c8596a6 474.00 ms 492.96 ms 18.96 ms
73a3c38 478.18 ms 526.62 ms 48.44 ms
0fb45d0 482.79 ms 554.02 ms 71.23 ms
640ad0c 466.00 ms 552.67 ms 86.67 ms
765aa8b 493.51 ms 531.23 ms 37.72 ms
cc4e375 426.15 ms 482.34 ms 56.19 ms
c1e775e 482.36 ms 608.98 ms 126.62 ms
2d34233 470.54 ms 558.90 ms 88.36 ms
54acf91 487.24 ms 529.60 ms 42.36 ms

App size

Revision Plain With Sentry Diff
93b7728 6.54 MiB 7.69 MiB 1.15 MiB
c8596a6 6.54 MiB 7.53 MiB 1015.27 KiB
73a3c38 6.54 MiB 7.69 MiB 1.15 MiB
0fb45d0 6.54 MiB 7.70 MiB 1.17 MiB
640ad0c 6.54 MiB 7.69 MiB 1.15 MiB
765aa8b 6.54 MiB 7.70 MiB 1.16 MiB
cc4e375 6.54 MiB 7.69 MiB 1.15 MiB
c1e775e 6.54 MiB 7.70 MiB 1.17 MiB
2d34233 6.54 MiB 7.55 MiB 1.01 MiB
54acf91 6.54 MiB 7.70 MiB 1.17 MiB

Previous results on branch: feat/stuctured-logs-debug-log

Startup times

Revision Plain With Sentry Diff
b3ca1c1 456.44 ms 538.72 ms 82.28 ms

App size

Revision Plain With Sentry Diff
b3ca1c1 6.54 MiB 7.71 MiB 1.17 MiB

@denrase denrase requested a review from buenaflor August 26, 2025 09:13
Copy link
Contributor

@buenaflor buenaflor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, did you check that this doesn't double console log for structured logs created by the logging integration?

cursor[bot]

This comment was marked as outdated.

cursor[bot]

This comment was marked as outdated.

@denrase denrase merged commit 36820e8 into main Aug 26, 2025
137 checks passed
@denrase denrase deleted the feat/stuctured-logs-debug-log branch August 26, 2025 13:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

If debug is set to true, calls to the Sentry Structured Log API should also print to the console

3 participants